package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan({"com.example.demo.mysqlDao","com.example.demo.oracleDao"})
public class OraMysServerApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(OraMysServerApplication.class, args);
    }

    //打war包修改，需要继承SpringBootServletInitializer
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(OraMysServerApplication.class);
    }
}
